public class StaticFactory {
    public static void main(String[] args) {
        Solider s1 = new Solider();
        man m1 = new man(s1);
        m1.Move();

    }
}

interface Sport {
    public void Move();
}

class man implements Sport{
    private Sport s;

    public man(Sport s) {
        this.s = s;
    }
    @Override
    public void Move() {
        System.out.println("走几步");
        s.Move();
        System.out.println("停了");
    }
}

class Solider implements Sport{

    @Override
    public void Move() {
        System.out.println("开枪了");
    }
}